package guiBeatporty;

import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.LayoutStyle.ComponentPlacement;
import javax.swing.JButton;
import javax.swing.border.LineBorder;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Sobre extends JInternalFrame {

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Sobre frame = new Sobre();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Sobre() {
		setBorder(new LineBorder(new Color(0, 0, 0)));
		setBounds(100, 100, 450, 300);
		
		JLabel lblBeatporty = new JLabel("Beatporty");
		lblBeatporty.setFont(new Font("Tahoma", Font.BOLD, 16));
		
		JLabel lblJavaBsicoI = new JLabel("Java B\u00E1sico I");
		
		JLabel lblUniversidadeFederalFluminense = new JLabel("Universidade Federal Fluminense");
		
		JLabel lblVerso = new JLabel("vers\u00E3o 0.1");
		lblVerso.setFont(new Font("Tahoma", Font.BOLD, 11));
		
		JLabel lblHigorDosSantos = new JLabel("Higor dos Santos Pinto");
		
		JButton btnOk = new JButton("Ok");
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				dispose();
				MainFrame.resizeMainFrame(true);
			}
		});
		GroupLayout groupLayout = new GroupLayout(getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(128)
							.addComponent(lblUniversidadeFederalFluminense))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(161)
							.addComponent(lblBeatporty))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(171)
							.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
								.addComponent(lblVerso)
								.addComponent(lblJavaBsicoI)))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(148)
							.addComponent(lblHigorDosSantos))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(181)
							.addComponent(btnOk)))
					.addContainerGap(149, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(21)
					.addComponent(lblBeatporty)
					.addPreferredGap(ComponentPlacement.RELATED)
					.addComponent(lblVerso)
					.addGap(35)
					.addComponent(lblJavaBsicoI)
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addComponent(lblUniversidadeFederalFluminense)
					.addPreferredGap(ComponentPlacement.UNRELATED)
					.addComponent(lblHigorDosSantos)
					.addGap(27)
					.addComponent(btnOk)
					.addContainerGap(61, Short.MAX_VALUE))
		);
		getContentPane().setLayout(groupLayout);

	}
}
